package com.travel.sight.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.travel.common.to.AttractionInfoTo;
import com.travel.common.utils.PageUtils;
import com.travel.sight.entity.AttractionInfoEntity;
import com.travel.sight.vo.AttractionVo;

import java.text.ParseException;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 
 *
 * @author lxw
 * @email lxw@gmail.com
 * @date 2023-11-01 17:41:24
 */
public interface AttractionInfoService extends IService<AttractionInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    AttractionInfoEntity voToEntity(AttractionVo vo);

    List<AttractionInfoEntity> showAllAttraction();

    void saveES(AttractionInfoEntity attractionInfoEntity);

    AttractionVo info(Integer attractionId) throws ExecutionException, InterruptedException;

    Integer getBehaviorNum(Integer userId);

    List<AttractionInfoTo> getAttractionByTagName(String tagName);

    List<AttractionInfoTo> getAttractionsByIds(List<Integer> ids);

    List<AttractionInfoTo> getAllAttraction();

}

